|
DX11 DRAW SPRITE
Draws the given sprite to the screen with its current settings (including custom pixel shaders and constant buffers).
A new position, size and angle can be set for the sprite. Note that this will draw the sprite regardless of whether
it is set to be excluded or not. It will also be drawn on top of any normally drawn sprites, as with all other direct drawing functions.
DX11 DRAW SPRITE x, y, sprite, [useCenter], [width], [height], [angle]
x Integer The X coordinate to draw the sprite at.
y Integer The Y coordinate to draw the sprite at.
sprite Dword The sprite to draw.
[Optional] useCenter Boolean Set to true to draw the sprite with its center at the given coordinates, or false to draw its top-left corner there. Defaults to false if omitted.
[Optional] width Dword The width to draw the sprite to. Will use the width of the source sprite if omitted. Note that both width and height have to be either provided or omitted.
[Optional] height Dword The height to draw the sprite to. Will use the height of the source sprite if omitted. Note that both width and height have to be either provided or omitted.
[Optional] angle Float The angle to draw the sprite using. Will use the angle of the source sprite if omitted.
This function does not return a value.
DIRECTDRAWING Functions Menu
DX11 Function Categories
|